package com.dbdata.move.model;

// Generated cafuc by Hibernate Tools 4

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Organize generated by hbm2java
 */
@Entity
@Table(name = "organize")
public class Organize implements java.io.Serializable {

	private Long id;
	private Organize organize;
	private String organizeName;
	private String remark;
	private long orgOrder;
	private byte orgType;
	private Set<TrainNoticeBrigadeDoubleSelect> trainNoticeBrigadeDoubleSelects = new HashSet<TrainNoticeBrigadeDoubleSelect>(
			0);
	private Set<SimulatorTaskDoc> simulatorTaskDocs = new HashSet<SimulatorTaskDoc>(
			0);
	private Set<AirplaneNumber> airplaneNumbers = new HashSet<AirplaneNumber>(0);
	private Set<MessageOrgainze> messageOrgainzes = new HashSet<MessageOrgainze>(
			0);
	private Set<TrainNoticePart> trainNoticeParts = new HashSet<TrainNoticePart>(
			0);
	private Set<StopFly> stopFlies = new HashSet<StopFly>(0);
	private Set<TrainNoticePartUserBaseInfo> trainNoticePartUserBaseInfos = new HashSet<TrainNoticePartUserBaseInfo>(
			0);
	private Set<Organize> organizes = new HashSet<Organize>(0);
	private Set<UserBaseInfo> userBaseInfos = new HashSet<UserBaseInfo>(0);
	private Set<TaskDoc> taskDocs = new HashSet<TaskDoc>(0);
	private Set<SysUserOrganize> sysUserOrganizes = new HashSet<SysUserOrganize>(
			0);

	public Organize() {
	}

	public Organize(String organizeName, long orgOrder, byte orgType) {
		this.organizeName = organizeName;
		this.orgOrder = orgOrder;
		this.orgType = orgType;
	}

	public Organize(
			Organize organize,
			String organizeName,
			String remark,
			long orgOrder,
			byte orgType,
			Set<TrainNoticeBrigadeDoubleSelect> trainNoticeBrigadeDoubleSelects,
			Set<SimulatorTaskDoc> simulatorTaskDocs,
			Set<AirplaneNumber> airplaneNumbers,
			Set<MessageOrgainze> messageOrgainzes,
			Set<TrainNoticePart> trainNoticeParts, Set<StopFly> stopFlies,
			Set<TrainNoticePartUserBaseInfo> trainNoticePartUserBaseInfos,
			Set<Organize> organizes, Set<UserBaseInfo> userBaseInfos,
			Set<TaskDoc> taskDocs, Set<SysUserOrganize> sysUserOrganizes) {
		this.organize = organize;
		this.organizeName = organizeName;
		this.remark = remark;
		this.orgOrder = orgOrder;
		this.orgType = orgType;
		this.trainNoticeBrigadeDoubleSelects = trainNoticeBrigadeDoubleSelects;
		this.simulatorTaskDocs = simulatorTaskDocs;
		this.airplaneNumbers = airplaneNumbers;
		this.messageOrgainzes = messageOrgainzes;
		this.trainNoticeParts = trainNoticeParts;
		this.stopFlies = stopFlies;
		this.trainNoticePartUserBaseInfos = trainNoticePartUserBaseInfos;
		this.organizes = organizes;
		this.userBaseInfos = userBaseInfos;
		this.taskDocs = taskDocs;
		this.sysUserOrganizes = sysUserOrganizes;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "FATHER_NODE")
	public Organize getOrganize() {
		return this.organize;
	}

	public void setOrganize(Organize organize) {
		this.organize = organize;
	}

	@Column(name = "ORGANIZE_NAME", nullable = false, length = 60)
	public String getOrganizeName() {
		return this.organizeName;
	}

	public void setOrganizeName(String organizeName) {
		this.organizeName = organizeName;
	}

	@Column(name = "REMARK", length = 200)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "ORG_ORDER", nullable = false)
	public long getOrgOrder() {
		return this.orgOrder;
	}

	public void setOrgOrder(long orgOrder) {
		this.orgOrder = orgOrder;
	}

	@Column(name = "ORG_TYPE", nullable = false)
	public byte getOrgType() {
		return this.orgType;
	}

	public void setOrgType(byte orgType) {
		this.orgType = orgType;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "organize")
	public Set<TrainNoticeBrigadeDoubleSelect> getTrainNoticeBrigadeDoubleSelects() {
		return this.trainNoticeBrigadeDoubleSelects;
	}

	public void setTrainNoticeBrigadeDoubleSelects(
			Set<TrainNoticeBrigadeDoubleSelect> trainNoticeBrigadeDoubleSelects) {
		this.trainNoticeBrigadeDoubleSelects = trainNoticeBrigadeDoubleSelects;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "organize")
	public Set<SimulatorTaskDoc> getSimulatorTaskDocs() {
		return this.simulatorTaskDocs;
	}

	public void setSimulatorTaskDocs(Set<SimulatorTaskDoc> simulatorTaskDocs) {
		this.simulatorTaskDocs = simulatorTaskDocs;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "organize")
	public Set<AirplaneNumber> getAirplaneNumbers() {
		return this.airplaneNumbers;
	}

	public void setAirplaneNumbers(Set<AirplaneNumber> airplaneNumbers) {
		this.airplaneNumbers = airplaneNumbers;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "organize")
	public Set<MessageOrgainze> getMessageOrgainzes() {
		return this.messageOrgainzes;
	}

	public void setMessageOrgainzes(Set<MessageOrgainze> messageOrgainzes) {
		this.messageOrgainzes = messageOrgainzes;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "organize")
	public Set<TrainNoticePart> getTrainNoticeParts() {
		return this.trainNoticeParts;
	}

	public void setTrainNoticeParts(Set<TrainNoticePart> trainNoticeParts) {
		this.trainNoticeParts = trainNoticeParts;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "organize")
	public Set<StopFly> getStopFlies() {
		return this.stopFlies;
	}

	public void setStopFlies(Set<StopFly> stopFlies) {
		this.stopFlies = stopFlies;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "organize")
	public Set<TrainNoticePartUserBaseInfo> getTrainNoticePartUserBaseInfos() {
		return this.trainNoticePartUserBaseInfos;
	}

	public void setTrainNoticePartUserBaseInfos(
			Set<TrainNoticePartUserBaseInfo> trainNoticePartUserBaseInfos) {
		this.trainNoticePartUserBaseInfos = trainNoticePartUserBaseInfos;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "organize")
	public Set<Organize> getOrganizes() {
		return this.organizes;
	}

	public void setOrganizes(Set<Organize> organizes) {
		this.organizes = organizes;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "organize")
	public Set<UserBaseInfo> getUserBaseInfos() {
		return this.userBaseInfos;
	}

	public void setUserBaseInfos(Set<UserBaseInfo> userBaseInfos) {
		this.userBaseInfos = userBaseInfos;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "organize")
	public Set<TaskDoc> getTaskDocs() {
		return this.taskDocs;
	}

	public void setTaskDocs(Set<TaskDoc> taskDocs) {
		this.taskDocs = taskDocs;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "organize")
	public Set<SysUserOrganize> getSysUserOrganizes() {
		return this.sysUserOrganizes;
	}

	public void setSysUserOrganizes(Set<SysUserOrganize> sysUserOrganizes) {
		this.sysUserOrganizes = sysUserOrganizes;
	}

}
